package com.ruoyi.dm.service;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.dm.domain.AtmWindFieldParam;
import com.ruoyi.dm.domain.DataCollectionParam;
import com.ruoyi.dm.domain.DataManagementParam;
import com.ruoyi.utils.SseEmitterUTF8;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;


public interface DataCollectionService {

    AjaxResult add(MultipartFile[] files, DataCollectionParam param);

    AjaxResult selectList(DataCollectionParam param);

    AjaxResult edit(DataCollectionParam param);

    AjaxResult delete(List<DataCollectionParam> params);

    AjaxResult getCatalogList(Long parentId);

    AjaxResult getSourceList(DataManagementParam param);

    void download(List<DataCollectionParam> list, HttpServletResponse response);

    AjaxResult deleteDiskFile(Map<String, Object> map);

    AjaxResult test(List<String> nums,String id);

    AjaxResult importData(String path,Integer nums);

    AjaxResult importDc(String path, Integer nums);

    SseEmitter push(String id, String flag);

    void downloadTemplate(Long dataId, HttpServletResponse response);

    AjaxResult importAtmWindField(MultipartFile[] files, AtmWindFieldParam param, MultipartFile stationFile);
}
